import logging
from typing import Callable
from functools import wraps


def file_logger(name: str = 'base'):

    def decorator(func: Callable):
        @wraps(func)
        def wrapper(*args, **kwargs):
            logger = logging.getLogger(name)
            logger.info(f'{func.__name__} executed, args: {args}, kwargs: {kwargs}')
            return func(*args, **kwargs)

        return wrapper

    return decorator


